package sy.pageModel;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * Created by Administrator on 2016-07-06.
 */
public class Room extends BaseEntity{
    protected String units;//单位
    protected String price;
    protected String jdPrice;
    protected String whPrice;
    protected String cjPrice;
    private String payType;
    protected String comment;
    private String createTime;
    private String createName;//创建者
    private String checkTime;//修改时间
    private String checkName;//修改者

    public final static String ROOM_PAY_TYPE_1="1";
    public final static String ROOM_PAY_TYPE_2="2";
    public final static Map<String, String> ROOM_PAY_TYPE = new LinkedHashMap<String, String>();


    static {
        ROOM_PAY_TYPE.put(ROOM_PAY_TYPE_2,"在线付全款");
        ROOM_PAY_TYPE.put(ROOM_PAY_TYPE_1,"到现场支付");
    }
    public int getPersonNumber() {
        return personNumber;
    }

    public void setPersonNumber(int personNumber) {
        this.personNumber = personNumber;
    }

    public String getUnits() {
        return units;
    }

    public void setUnits(String units) {
        this.units = units;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getJdPrice() {
        return jdPrice;
    }

    public void setJdPrice(String jdPrice) {
        this.jdPrice = jdPrice;
    }

    public String getWhPrice() {
        return whPrice;
    }

    public void setWhPrice(String whPrice) {
        this.whPrice = whPrice;
    }

    public String getCjPrice() {
        return cjPrice;
    }

    public void setCjPrice(String cjPrice) {
        this.cjPrice = cjPrice;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPayTypeName(){
        return ROOM_PAY_TYPE.get(payType);
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(String checkTime) {
        this.checkTime = checkTime;
    }

    public String getCheckName() {
        return checkName;
    }

    public void setCheckName(String checkName) {
        this.checkName = checkName;
    }

    private int personNumber;
}